from django.shortcuts import render

# Create your views here.
from app.models import *
def index(request):
    m = Model.objects.all()
    return render(request,'index.html',{'m':m})
def indexx(request,id):
    mid = Model.objects.get(id=id)
    cont = Context.objects.filter(model_id=mid)
    m = Model.objects.all()
    return render(request,'index.html',{'m':m,"info":cont})